<div style="background-color: #eee">
<?php echo Form::open('search', array('method' => 'get')); ?>

<aside>
    <header>
        <ul class="multiselect_buttons" id="search_multiselect_buttons" style="float: left; margin: -6px 0px 0px 0px; ">
            <li id="btn_search_people" <?php if($get_arr['type'] == '1') echo 'class="active"' ?>><?php echo __('people') ?></li>
            <li id="btn_search_projects" <?php if($get_arr['type'] == '2') echo 'class="active"' ?>><?php echo __('projects') ?></li>
          <!--  <li id="btn_search_groups" <?php if($get_arr['type'] == '3') echo 'class="active"' ?>><?php echo __('groups') ?></li> -->
        </ul>
        <?php echo Form::hidden('type', $get_arr['type'], array('id' => 'search_type')) ?>
    </header>
    <div style="padding-top: 0px;padding-bottom: 9px;border-bottom-style: dotted" class="aside_white_box">
     <?php echo Form::input('search_word', $get_arr['search_word'], array('class'       => 'standard_text_form',
                                                                          'placeholder' => ($get_arr['type'] == '1') ? __('Who You looking for').'...' : __('What You looking for').'...',
                                                                          'id'          => 'search')) ?>
        
    </div>
    <div style="padding-top: 1px;padding-bottom: 11px" class="aside_white_box">
    <?php echo Form::submit('send', __('Search'), array('class'=>'button_blue',
                                                         'style'=>'')) ?>
        <p style="padding-left: 10px; padding-right: 0px; display: block;width: auto; float: right;"><?php echo __('result') ?>: <strong><?php echo $all_result ?></strong></p>
    </div>
    <header><?php echo __('field') ?></header>
    <div style="padding-top: 0px;padding-bottom: 9px"  class="aside_white_box">
        <?php echo Form::select('field', $fields, $get_arr['field'], array('class' => 'standard_select_form',
                                                                              'style' => 'float: none')) ?> 
    </div>
    <div class="people_division" style="display:<?php echo $get_arr['type'] == '1' ? 'block' : 'none' ?>">
        <header><?php echo __('country') ?></header>
        <div style="padding-top: 0px;padding-bottom: 9px"  class="aside_white_box">
             <?php echo Form::select('country', $countries, $get_arr['country'], array('class' => 'standard_select_form',
                                                                                       'style' => 'float: none')) ?> 
        </div>
        <header><?php echo __('locality') ?></header>
        <div style="padding-top: 0px;padding-bottom: 9px"  class="aside_white_box">
            <?php echo Form::input('location', $get_arr['location'], array('class'       => 'standard_text_form',
                                                         'placeholder' => __('Enter locality name').'...',
                                                         'id'          => 'email')) ?>
        </div>
        <header><?php echo __('company') ?></header>
        <div style="padding-top: 0px;padding-bottom: 9px;border-bottom-style: dotted" class="aside_white_box">
            <?php echo Form::input('company', $get_arr['company'], array('class'       => 'standard_text_form',
                                                                         'placeholder' => __('Enter company name').'...',
                                                                         'id'          => 'email')) ?>  

        </div>
        <div style="padding-top: 10px;padding-bottom: 9px;" class="aside_white_box">
             <?php echo Form::hidden('employed', (bool) $get_arr['employed'], array('id' => 'hidden_search_employed')) ?>
             <?php echo Form::hidden('not_employed', (bool) $get_arr['not_employed'], array('id' => 'hidden_search_not_employed')) ?>
             <ul class="multiselect_buttons" id="search_multiselect_buttons" style="float:left;">
                 <li id="btn_search_employed" class="<?php if($get_arr['employed']) echo 'active' ?>"><?php echo __(' employed') ?></li>
                    <li id="btn_search_not_employed" class="<?php if($get_arr['not_employed']) echo 'active' ?>"><?php echo __('not employed') ?></li>  
             </ul>
            <div style="clear:both"></div>
        </div>
        
        <header><?php echo __('school') ?></header>
        <div style="padding-top: 0px;padding-bottom: 9px" class="aside_white_box">
            <?php echo Form::input('school', $get_arr['school'], array('class'       => 'standard_text_form',
                                                                       'placeholder' => __('Enter school name').'...',
                                                                       'id'          => 'email')) ?>
        </div>
        <header><?php echo __('recently joined') ?></header>
        <div style="padding-top: 0px;padding-bottom: 9px;" class="aside_white_box">
            <?php echo Form::select('joined', array(__('Any time'), 
                                                    __('1 day ago'), 
                                                    __('1 week ago'),
                                                    __('2 weeks ago'),
                                                    __('1 month ago'), 
                                                    __('3 months ago')), $get_arr['joined'], array('class' => 'standard_select_form',
                                                                                 'style' => 'float: none')) ?>
        </div>
    </div>
    <div class="project_division" style="display:<?php echo $get_arr['type'] == '2' ? 'block' : 'none' ?>">
        <header><?php echo __('browse') ?></header>
        <div style="padding-top: 0px;padding-bottom: 9px;" class="aside_white_box">
            <?php echo Form::select('browse', array(__('Most recent'), 
                                                    __('Most viewed'),
                                                    __('Most discussed'),
                                                    __('Most appreciated')), $get_arr['browse'], array('class' => 'standard_select_form',
                                                                                                       'style' => 'float: none')) ?>
        </div>
        <header><?php echo __('time') ?></header>
        <div style="padding-top: 0px;padding-bottom: 9px;" class="aside_white_box">
            <?php echo Form::select('time', array(__('All time'), 
                                                    __('Today'), 
                                                    __('This week'),
                                                    __('This month'),
                                                    __('This year')), $get_arr['time'], array('class' => 'standard_select_form',
                                                                                                       'style' => 'float: none')) ?>
        </div>
    </div>
</aside>
<section>

    <?php echo $content ?>
</section>

<?php echo Form::close(); ?>
    <div style="clear:left"></div>
</div>
<?php // echo View::factory('profiler/stats'); ?>
<script type="text/javascript">
    
   head.ready(function() {
       site.init('search-view');
   });
        
</script>